package com.cly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cly.entity.ProjectExperience;
import com.cly.result.JsonRequest;

import java.util.List;

/**
 * 项目经历 服务类
 *
 * @author by 春风能解释
 * <p>
 * 2024/11/9
 */
public interface IProjectExperienceService extends IService<ProjectExperience> {


    /**
     * 查看项目经历
     *
     * @param resumeId 简历id
     * @return JSON
     */
    JsonRequest<List<ProjectExperience>> lookProjectExperience(Long resumeId);

    /**
     * 新增项目经历并关联简历
     *
     * @param projectExperiences 项目经历
     * @param resumeId           简历id
     * @return JSON
     */
    JsonRequest<Boolean> addOneProjectExperience(List<ProjectExperience> projectExperiences, Long resumeId);

    /**
     * 删除项目经历
     *
     * @param resumeId 简历ID
     * @return JSON
     */
    JsonRequest<Boolean> deleteProjectExperience(Long resumeId);

}
